<table class="form_table" cellpadding="0" cellspacing="0" style="border-top: 0px;">
  <caption style="border-bottom: 0px;">
    <%= "#{Subject.human_name}" %>
  </caption>
  <tr>
    <th><%= "#{Subject.human_attribute_name(:educational_plan)}" %></th>
    <th><%= "#{Subject.human_attribute_name(:name)}" %></th>
    <th><%= "#{Subject.human_attribute_name(:code)}" %></th>
    <th><%= "#{Subject.human_attribute_name(:credits)}" %></th>
    <th><%= "#{Subject.human_attribute_name(:is_required)}" %></th>
    <th></th>
    <th></th>
    <th></th>
  </tr>
  <% @subjects.each do |subject| %>
    <tr class="<%= cycle('odd', 'even') %>">
      <td class="<%= current_cycle %>"><%= subject.educational_plan.name %></td>
      <td class="<%= current_cycle %>"><%= subject.name %></td>
      <td class="<%= current_cycle %>" style="text-align: center; font-weight: bold"><%= subject.code %></td>
      <td class="<%= current_cycle %>" style="text-align: center;"><%= subject.credits %></td>
      <td class="<%= current_cycle %>" style="text-align: center;"><%= subject.is_required ? t(:true_yes) : t(:false_no) %></td>
      <td class="<%= current_cycle %>">[ <%= link_to t(:show), subject %> ]</td>
      <td class="<%= current_cycle %>">[ <%= link_to t(:edit), edit_subject_path(subject) %> ]</td>
      <td class="<%= current_cycle %>">[ <%= link_to t(:delete), subject, :confirm => t(:prompt_delete_x, :x => subject.code), :method => :delete %> ]</td>
    </tr>
  <% end %>
</table>